<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">  
	<ui:param name="topicViewBean" value="#{commonContentViewBean}" />

	<table width="718" border="0" cellpadding="0" cellspacing="0">
	   <tr><td height="5"></td></tr>
	   <tr><td height="25">
	       
	      <table width="716" style="height:25;" border="0" cellpadding="0" cellspacing="0">
	       <tr align="center" class="menu">
	         <!--第一联-->  
	         <td width="71" height="25" background="./img/document/title_back1.gif" id="bt1" style="cursor:hand;" onclick="titledown1(1,1);">
		         <img src="./img/document/title_ico.gif" width="18" height="18" align="absbottom" />第一联</td>
		     <!--第一联结束-->    
		    
	             
	         <!--(在些增加新的列)-->  
	         
	         <!--(在些增加新的列结束)-->
	         
	          
	         <td background="./img/document/title_back3.gif">&#160;&#160;&#160;</td>
	        </tr>
	      </table>
	
	   </td></tr>
	   <tr><td height="58" background="./img/document/formback1.gif">
		</td></tr>
	   <tr><td background="./img/document/formback2.gif" align="center" valign="top">
	        <!--表单的位置-->
	        
			
			<!--第一列的模板-->
			<table border="0" width="650" cellspacing="0" cellpadding="0" height="219" id="formTable1">
		<tr>
			<td>
			<p align="center" class="K1">接处警登记表</p></td>
		</tr>
		<tr>
			<td>
			<p align="right">表&#160;&#160;&#160;号：基础台帐(一)</p></td>
		</tr>
		<tr>
			<td>
			<p align="right">制表机关：贵州省公安厅</p></td>
		</tr>
		
		<tr>
			<td>
			<table border="0" width="652" cellspacing="0" bgcolor="#000000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-width: 1px" bordercolor="#000000">
				<tr>
					<td bgcolor="#FFFFFF" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" align="center">接警时间</td>
					<td bgcolor="#FFFFFF" colspan="3" style="border-left-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
					<h:inputText value="#{topicViewBean.reportTime}" readonly="true" size="20"/></td>
					<td bgcolor="#FFFFFF" colspan="2" style="border-left-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
					<p align="center">报警形式</p></td>
					<td bgcolor="#FFFFFF" style="border-left-width: 1px; border-top-width: 1px; border-bottom-width: 1px; border-left-style:solid; border-bottom-style:solid">
					<h:inputText value="#{topicViewBean.reportMode}" readonly="true" size="20"/></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" align="center">报警人</td>
					<td bgcolor="#FFFFFF" style="border-left-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
					<h:inputText value="#{topicViewBean.a2}" readonly="true" size="10"/></td>
					<td bgcolor="#FFFFFF" colspan="2" style="border-left-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
					<p align="center">单位(住址)、电话</p></td>
					<td bgcolor="#FFFFFF"  colspan="3" style="border-left-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
					<h:inputText value="#{topicViewBean.a3}" readonly="true" size="20"/></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF"  style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" align="center">接警人</td>
					<td bgcolor="#FFFFFF"  colspan="2" style="border-left-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
					<h:inputText value="#{topicViewBean.receivePsn}" readonly="true" size="10"/></td>
					<td bgcolor="#FFFFFF" colspan="2" style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px; border-left-style:solid; border-bottom-style:solid">
					<p align="center">到达现场时间</p></td>
					<td bgcolor="#FFFFFF" colspan="2" style="border-top-width: 1px; border-bottom-width: 1px; border-bottom-style:solid">
					<h:inputText value="#{topicViewBean.arriveTime}" readonly="true" size="20"/></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" width="640" colspan="7">报警内容(简要案情)：<br />
	                <h:inputTextarea value="#{topicViewBean.reportDetails}" style="width:100%;" rows="6" readonly="true" maxlength="255"/></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" width="640" colspan="7" style="border-left-width: 1px; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-width: 1px">处警情况：<br />
	                    									<h:inputTextarea value="#{topicViewBean.disposeDetails}" style="width:100%;" rows="6" readonly="true" maxlength="255"/>
	                    									<p align="right">
					处警人(签名)：<h:inputText value="#{topicViewBean.disposePsn}" size="13"/><h:inputText value="disposePsn1" size="13" readonly="true"/></p></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" width="640" colspan="7" style="border-left-width: 1px; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-width: 1px">初查损失(危害)情况：<h:inputTextarea value="#{topicViewBean.a17}" style="width:100%;" rows="6" readonly="true" maxlength="255"/><br />
	                    									　<p align="right">死
	                							    <h:inputText value="#{topicViewBean.dieNum}" size="3" readonly="true"/>
	                							    人，伤
	                							    <h:inputText value="#{topicViewBean.lnjureNum}" size="3" readonly="true"/>
	                							    人，直接经济损失总计
	                							    <h:inputText value="#{topicViewBean.lossValue}" size="6" readonly="true"/>
	                							    元</p></td>
				</tr>
			</table>
			</td>
		</tr>
		
		<tr>
			<td>
			<table border="0" width="100%" cellspacing="1" bgcolor="#000000">
  				<tr>
					<td bgcolor="#FFFFFF" width="44" rowspan="6" align="center">处<br />
					警<br />
					结<br />
					果</td>
					<td bgcolor="#FFFFFF" width="216">
					<h:selectOneRadio id="#{topicViewBean.id}_disposeIdea1" value="#{topicViewBean.disposeIdea1}" onclick="setDispose(this.value);">
	                							   <f:selectItem itemValue="1"  itemLabel="1、报立刑事案件" onclick="setDispose(this.value);"/>
	             	</h:selectOneRadio>
	           		</td>
					<td bgcolor="#FFFFFF" rowspan="2">详见 <h:inputText id="a5" value="#{topicViewBean.a5}" size="6"/>
					案件登记簿，编号：  <h:inputText value="#{topicViewBean.a6}" size="6" onclick="setDispose(this.value);"/></td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" width="216">
					<h:selectOneRadio id="#{topicViewBean.id}_disposeIdea2" value="#{topicViewBean.disposeIdea2}" onclick="setDispose(this.value);">
	                							     <f:selectItem itemValue="2"  itemLabel="2、立治安案件" onclick="setDispose(this.value);"/> 
	               </h:selectOneRadio>
	              	</td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" colspan="2">
					<h:selectOneRadio id="#{topicViewBean.id}_disposeIdea3" value="#{topicViewBean.disposeIdea3}" onclick="setDispose(this.value);">
	                							    <f:selectItem itemValue="3"  itemLabel="3、作民事纠纷调解" onclick="setDispose(this.value);"/> 
	              	</h:selectOneRadio>
	              	</td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" colspan="2">
					<h:selectOneRadio id="#{topicViewBean.id}_disposeIdea4" value="#{topicViewBean.disposeIdea4}" onclick="setDispose(this.value);">
	                							     <f:selectItem itemValue="4"  itemLabel="4、救助服务" onclick="setDispose(this.value);"/> 
	             	</h:selectOneRadio>
	             	</td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" colspan="2" >
					<h:selectOneRadio id="#{topicViewBean.id}_disposeIdea5" value="#{topicViewBean.disposeIdea5}"
						style="float:left;" onclick="setDispose(this.value);">
	                    <f:selectItem itemValue="5" onclick="setDispose(this.value);"></f:selectItem>
	                </h:selectOneRadio>5、转<h:inputText value="#{topicViewBean.a15}" size="10"/>处理
	                </td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" height="19" colspan="2">
					<h:selectOneRadio id="#{topicViewBean.id}_disposeIdea6" value="#{topicViewBean.disposeIdea6}" onclick="setDispose(this.value);">
					<f:selectItem itemValue="6"  itemLabel="6、其它" onclick="setDispose(this.value);"/>
					</h:selectOneRadio>
					</td>
				</tr>
				

				<tr>
					<td bgcolor="#FFFFFF" colspan="3">科、所、队值班领导签字： 
					<h:inputText value="#{topicViewBean.a18}" size="35"/>
					<p align="right">领导签名：
					  <h:inputText value="#{topicViewBean.a8}" size="13" readOnly="true"/>
					日期:
					<h:inputText value="#{topicViewBean.a9}" size="13" readOnly="true"/></p></td>
				</tr>
			</table>
			</td>
		</tr>
		
		<tr>
			<td>
			注：报警形式指110指令、执勤巡逻发现、口头报警、群众扭送、投案自首、器材报警、领导交办、其他部门移送等。如立刑事或治安案件的，结合台帐(二)、(三)填写类别及编号。</td>
		</tr>
	</table>
        <!--第一列的模板结束-->	
        	 
      <!--表单的位置结束-->
      </td>
	</tr>
	<tr><td height="17" background="./img/document/formback3.gif"></td></tr>
	<tr><td height="5"></td></tr>
</table>


<script language="javascript">

function setDispose(disPoseValue)
{
	 
	//var pid = window.document.forms[8].id ;
	var pid = window.document.getElementsByName('#{documentViewBean.id}_form') ;
	//alert(pid[0].id);
	pid = pid[0].id;
 if(disPoseValue=='1')
 {
   window.document.getElementById(pid + ":a5").value='刑事';
   window.document.getElementById(pid+":a10").value='√';
   window.document.getElementById(pid+":a11").value=' ';
   window.document.getElementById(pid+":a12").value=' ';
   window.document.getElementById(pid+":a13").value=' ';
   window.document.getElementById(pid+":a14").value=' ';
   window.document.getElementById(pid+":a16").value=' ';
   
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea2:0").checked = false;
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea3:0").checked = false;
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea4:0").checked = false;
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea5:0").checked = false;
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea6:0").checked = false;

 }
 
 if(disPoseValue=='2')
 { 
   window.document.getElementById(pid + ":a5").value='行政';
   window.document.getElementById(pid+":a10").value=' ';
   window.document.getElementById(pid+":a11").value='√';
   window.document.getElementById(pid+":a12").value=' ';
   window.document.getElementById(pid+":a13").value=' ';
   window.document.getElementById(pid+":a14").value=' ';
   window.document.getElementById(pid+":a16").value=' ';
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea1:0").checked = false;
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea3:0").checked = false;
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea4:0").checked = false;
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea5:0").checked = false;
   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea6:0").checked = false;
 }

 if(disPoseValue=='3')
 {
	  window.document.getElementById(pid + ":a5").value=' ';
	  window.document.getElementById(pid+":a10").value=' ';
	   window.document.getElementById(pid+":a11").value=' ';
	   window.document.getElementById(pid+":a12").value='√';
	   window.document.getElementById(pid+":a13").value=' ';
	   window.document.getElementById(pid+":a14").value=' ';
	   window.document.getElementById(pid+":a16").value=' ';
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea1:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea2:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea4:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea5:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea6:0").checked = false;
 }

 if(disPoseValue=='4')
 {
	  window.document.getElementById(pid + ":a5").value=' ';
	  window.document.getElementById(pid+":a10").value=' ';
	   window.document.getElementById(pid+":a11").value=' ';
	   window.document.getElementById(pid+":a12").value=' ';
	   window.document.getElementById(pid+":a13").value='√';
	   window.document.getElementById(pid+":a14").value=' ';
	   window.document.getElementById(pid+":a16").value=' ';
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea1:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea2:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea3:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea5:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea6:0").checked = false;
 }

if(disPoseValue=='5')
 {
	 window.document.getElementById(pid + ":a5").value=' ';
	  window.document.getElementById(pid+":a10").value=' ';
	   window.document.getElementById(pid+":a11").value=' ';
	   window.document.getElementById(pid+":a12").value=' ';
	   window.document.getElementById(pid+":a13").value=' ';
	   window.document.getElementById(pid+":a14").value='√';
	   window.document.getElementById(pid+":a16").value=' ';
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea1:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea2:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea3:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea4:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea6:0").checked = false;
 }


if(disPoseValue=='6')
 { 

	 window.document.getElementById(pid + ":a5").value=' ';
	  window.document.getElementById(pid+":a10").value=' ';
	   window.document.getElementById(pid+":a11").value=' ';
	   window.document.getElementById(pid+":a12").value=' ';
	   window.document.getElementById(pid+":a13").value=' ';
	   window.document.getElementById(pid+":a14").value=' ';
	   window.document.getElementById(pid+":a16").value='√';
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea1:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea2:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea3:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea4:0").checked = false;
	   window.document.getElementById(pid+":#{topicViewBean.id}_disposeIdea5:0").checked = false;
  }  
  
}


</script>
<input name="A1" type="hidden" id="A1" />
<h:inputHidden id="a10" value="#{topicViewBean.a10}"/>
<h:inputHidden id="a11"  value="#{topicViewBean.a11}"/>
<h:inputHidden id="a12"  value="#{topicViewBean.a12}"/>
<h:inputHidden id="a13"  value="#{topicViewBean.a13}"/>
<h:inputHidden id="a14"  value="#{topicViewBean.a14}"/>
<h:inputHidden id="a16"  value="#{topicViewBean.a16}"/>

</ui:composition>